package com.eorchis.module.trainingneeds.ui.commond;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.eorchis.core.basedao.entity.IBaseEntity;
import com.eorchis.core.ui.commond.ICommonField;
import com.eorchis.core.ui.commond.ICommond;
import com.eorchis.module.trainingneeds.domain.QuestionBank;
import com.eorchis.module.trainingneeds.domain.QuestionOptionBean;
import com.eorchis.module.user.domain.User;

/**
 * Title: QuestionBankValidCommond<br>
 * Description: 培训需求题库表ValidCommond<br>
 * Company: GoldGov<br>
 * Copyright @ 2012 GoldGov .All rights reserved.<br>
 * @author HuangTF
 * @createDate 2014-02-19
 * @version $Revision$
 */
public class QuestionBankValidCommond implements ICommond,ICommonField
{
	private QuestionBank questionBank;
	private String[] options;//选项集合
	private String questionType;//试题题型
	private List<QuestionOptionBean> optionList;//选项集合
	private String isLimitNum;//是否限制字数  1：是     2：否
	private String questionnaireId;//问卷ID
	private Integer objectiveTopic;//多选题是否为主管题
	private String[] optionsCollection;//试题题型和是否为主观题拼在一起	
	private Integer isScoreType;//是否为数值型
	
	public String[] getOptionsCollection() {
		return optionsCollection;
	}

	public void setOptionsCollection(String[] optionsCollection) {
		this.optionsCollection = optionsCollection;
	}

	public Integer getObjectiveTopic() {
		return objectiveTopic;
	}

	public void setObjectiveTopic(Integer objectiveTopic) {
		this.objectiveTopic = objectiveTopic;
	}

	public QuestionBankValidCommond(){
		questionBank = new QuestionBank();
	}
	
	public QuestionBankValidCommond(QuestionBank questionBank){
		this.questionBank = questionBank;
	}
	@Override
	public Serializable getEntityID() {
		return questionBank.getQuestionId();
	}

	@Override
	public IBaseEntity toEntity() {
		return questionBank;
	}
	
	public String[] getOptions() {
		return options;
	}

	public void setOptions(String[] options) {
		this.options = options;
	}
	
	public String getIsLimitNum() {
		return isLimitNum;
	}

	public void setIsLimitNum(String isLimitNum) {
		this.isLimitNum = isLimitNum;
	}

	/**
	 * 获取试题ID
	 */
	public String getQuestionId() {
		return questionBank.getQuestionId();
	}
	/**
	 * 设置试题ID
	 */		
	public void setQuestionId(String questionId) {
		questionBank.setQuestionId(questionId);
	}
	/**
	 * 获取试题题型
	 */		
	public String getQuestionType() {
		return questionType;
	}
	/**
	 * 设置试题题型
	 */		
	public void setQuestionType(String questionType) {
		this.questionType=questionType;
	}
	/**
	 * 获取试题题干
	 */		
	public String getQuestionName() {
		return questionBank.getQuestionName();
	}
	/**
	 * 设置试题题干
	 */
	public void setQuestionName(String questionName) {
		questionBank.setQuestionName(questionName);
	}
	/**
	 * 获取创建人
	 */		
	public User getUser() {
		return questionBank.getUser();
	}
	/**
	 * 设置创建人
	 */		
	public void setUser(User user) {
		questionBank.setUser(user);
	}
	/**
	 * 获取问答题字数上限
	 */		
	public Integer getWordNum() {
		return questionBank.getWordNum();
	}
	/**
	 * 设置问答题字数上限
	 */		
	public void setWordNum(Integer wordNum) {
		questionBank.setWordNum(wordNum);
	}
	
	public List<QuestionOptionBean> getOptionList() {
		return optionList;
	}

	public void setOptionList(List<QuestionOptionBean> optionList) {
		this.optionList = optionList;
	}

	public String getQuestionnaireId()
	{
		return questionnaireId;
	}

	public void setQuestionnaireId(String questionnaireId)
	{
		this.questionnaireId = questionnaireId;
	}

	public Integer getQuestionTypes() {
		return questionBank.getQuestionTypes();
	}

	public void setQuestionTypes(Integer questionTypes) {
		questionBank.setQuestionTypes(questionTypes);
	}

	public String getQuestionsProblemSets() {
		return questionBank.getQuestionsProblemSets();
	}

	public void setQuestionsProblemSets(String questionsProblemSets) {
		questionBank.setQuestionsProblemSets(questionsProblemSets);
	}

	@Override
	public Integer getActiveState() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Date getCreateDate() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void setActiveState(Integer arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void setCreateDate(Date createDate) {
		// TODO Auto-generated method stub
		
	}

	public Integer getIsScoreType() {
		return isScoreType;
	}

	public void setIsScoreType(Integer isScoreType) {
		this.isScoreType = isScoreType;
	}


}
